// ::-webkit-scrollbar {
//   width: 6px;
//   height: 6px;
// }

// ::-webkit-scrollbar-track {
//   opacity: 0;
// }

// ::-webkit-scrollbar-thumb {
//   background-color: hsla(220, 4%, 58%, 0.3);
//   border-radius: 5px;
// }
@import './normalize.scss';

@import './markdown.scss';

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

ul {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none !important;
}

a.router-link-active {
  color: #3273dc;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

select,
input,
button {
  display: inline-block;
  background-color: #fff;
  background-image: none;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  box-sizing: border-box;
  line-height: 1.5;
  color: #606266;
  padding: 0.375rem 0.75rem;
  outline: none;
  cursor: pointer;
}

input.input-sm,
button.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;

  border-radius: 0.2rem;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;

  display: flex;
  flex-direction: column;

  .page {
    display: flex;
    flex: 1;
  }
}

ul {
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.CodeMirror {
  height: 100% !important;
}

.gutter {
  width: 0 !important;
  border-right: 2px solid #dedeeb;
  background-color: transparent;
  cursor: col-resize;
  margin-left: -7px;
}

.markdown-body {
  // max-width: 1200px;
  margin: 0 auto;
}

iframe.chart-frame {
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  padding-left: 200px;

  aside {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 200px;
    height: 100%;
    width: 200px;
    border-right: 1px solid #e9e9e9;
    background-color: #f8fafe;
    transition: all 0.25s ease-in-out;

    nav {
      color: #333;
      height: 100%;
      overflow: auto;
    }

    button {
      display: none;
      position: absolute;
      right: 0;
      top: 50px;
      transform: translateX(100%);
      width: 2.5rem;
    }
  }

  nav li a {
    display: inline-block;
    width: 100%;
    padding: 10px 30px;
  }

  nav li h3 {
    font-size: 14px;
    padding-left: 20px;
    color: rgba(0, 0, 0, 0.45);
  }

  nav li a.router-link-active {
    color: #3a8ee6;
    border-right: 2px solid #3a8ee6;
    background-color: rgba(58, 142, 230, 0.2);
  }

  article.container {
    width: 100%;
    height: 100%;
    padding: 24px 20px 10px 20px;
    overflow: auto;
  }

  @media (max-width: 768px) {
    article.container {
      padding: 15px;
    }

    aside {
      transform: translateX(-200px);

      button {
        display: block;
      }
    }

    aside.is-show {
      transform: translateX(0);
    }
  }
}

@media (max-width: 768px) {
  .page {
    padding-left: 0;
  }
}
